//
//  MenuDetail2ShicaiModel.m
//  Products_B
//
//  Created by lanou on 16/6/1.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuDetail2ShicaiModel.h"

@implementation MenuDetail2ShicaiModel
+ (NSMutableArray *)modelArray1ConfigureWithDic:(NSDictionary *)jsonDic{
    NSMutableArray *Array1 = [NSMutableArray array];
    
    for (NSDictionary *materialDic in jsonDic[@"data"][@"material"]) {
        MenuDetail2ShicaiModel *model = [[self alloc]init];
        [model setValuesForKeysWithDictionary:materialDic];
        [Array1 addObject:model];
        
    }
    return Array1;
}
+ (NSMutableArray *)modelArray2ConfigureWithDic:(NSDictionary *)jsonDic{
    NSMutableArray *array2 = [NSMutableArray array];
    for (NSDictionary *spicesDic in jsonDic[@"data"][@"spices"]) {
        MenuDetail2ShicaiModel *model = [[self alloc]init];
        [model setValuesForKeysWithDictionary:spicesDic];
        [array2 addObject:model];
    }
    return array2;
}
@end
